package cn.uc.util;

import android.graphics.Rect;

public class GraphicsUtil {
    public static boolean isRectCross(Rect r1, Rect r2){
        if(r1 == null || r2 == null){
            return false;
        }
        
        if(r1.right < r2.left || r1.bottom < r1.top || r1.left > r2.right || r1.top > r2.bottom){
            return false;
        }
        
        return true;
    }
}
